package thread;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 晓星航
 * Date: 2023-06-28
 * Time: 18:48
 */

public class ThreadDemo5 {
    public static void main(String[] args) {
        Thread t = new Thread(() -> {
            System.out.println("使用匿名类创建 Thread 子类对象");
        });
        t.start();
    }

    public static void main1(String[] args) {
        Thread t = new Thread(() -> System.out.println("使用匿名类创建 Thread 子类对象"));
        t.start();
    }
}
